package com.ruoyi.store.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 优惠券对象 tb_coupon
 *
 * @author gzc
 * @date 2023-04-24
 */
public class TbCoupon  implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 优惠券编号
     */
    private Long couponId;

    /**
     * 优惠券类型编号
     */
    @Excel(name = "优惠券类型编号")
    private Long couponTypeId;

    /**
     * 商户编号
     */
    @Excel(name = "商户编号")
    private Long lesseeId;

    /**
     * 优惠券名称
     */
    @Excel(name = "优惠券名称")
    private String couponName;

    /**
     * 优惠券生效日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "优惠券生效日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date statTime;

    /**
     * 优惠券失效日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "优惠券生效日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 发放数量
     */
    @Excel(name = "发放数量")
    private Long num;

    /**
     * 优惠面值
     */
    @Excel(name = "优惠面值")
    private BigDecimal faceValue;

    /**
     * 已领取数量
     */
    @Excel(name = "已领取数量")
    private Long receivedNum;

    /**
     * 已使用数量
     */
    @Excel(name = "已使用数量")
    private Long usedNum;

    /**
     * 使用门槛
     */
    @Excel(name = "使用门槛")
    private BigDecimal minPoint;

    @Excel(name = "优惠券类型")
    private String couponTypeName;

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponTypeId(Long couponTypeId) {
        this.couponTypeId = couponTypeId;
    }

    public Long getCouponTypeId() {
        return couponTypeId;
    }

    public void setLesseeId(Long lesseeId) {
        this.lesseeId = lesseeId;
    }

    public Long getLesseeId() {
        return lesseeId;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    public String getCouponName() {
        return couponName;
    }

    public void setStatTime(Date statTime) {
        this.statTime = statTime;
    }

    public Date getStatTime() {
        return statTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setNum(Long num) {
        this.num = num;
    }

    public Long getNum() {
        return num;
    }

    public void setFaceValue(BigDecimal faceValue) {
        this.faceValue = faceValue;
    }

    public BigDecimal getFaceValue() {
        return faceValue;
    }

    public void setReceivedNum(Long receivedNum) {
        this.receivedNum = receivedNum;
    }

    public Long getReceivedNum() {
        return receivedNum;
    }

    public void setUsedNum(Long usedNum) {
        this.usedNum = usedNum;
    }

    public Long getUsedNum() {
        return usedNum;
    }

    public void setMinPoint(BigDecimal minPoint) {
        this.minPoint = minPoint;
    }

    public BigDecimal getMinPoint() {
        return minPoint;
    }

    public String getCouponTypeName() {
        return couponTypeName;
    }

    public void setCouponTypeName(String couponTypeName) {
        this.couponTypeName = couponTypeName;
    }

    @Override
    public String toString() {
        return "TbCoupon{" +
                "couponId=" + couponId +
                ", couponTypeId=" + couponTypeId +
                ", lesseeId=" + lesseeId +
                ", couponName='" + couponName + '\'' +
                ", statTime=" + statTime +
                ", endTime=" + endTime +
                ", num=" + num +
                ", faceValue=" + faceValue +
                ", receivedNum=" + receivedNum +
                ", usedNum=" + usedNum +
                ", minPoint=" + minPoint +
                ", couponTypeName='" + couponTypeName + '\'' +
                '}';
    }
}
